package foodmaterial.action.valid;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

public class TrueFalseValidator implements ConstraintValidator<TrueFalseValid, Boolean> {

    private TrueFalseValid trueFalseValid ;

    @Override
    public void initialize(TrueFalseValid constraintAnnotation) {
        this.trueFalseValid = constraintAnnotation ;
    }

    @Override
    public boolean isValid(Boolean value, ConstraintValidatorContext constraintValidatorContext) {
        boolean ignoreEmpty = trueFalseValid.ignoreEmpty();
        return true;
    }
}
